//
//  UIImageView+KingerFisher.swift
//  TXiOSDemoApp
//
//  Created by xicheng on 16/11/25.
//  Copyright © 2016年 xicheng. All rights reserved.
//

import UIKit
import Kingfisher


extension UIImageView {

  
  func tx_setImage(WithURL url:URL) -> Void {
//    self.kf.setImage(with: url)
//    self.kf.setImage(with: ImageResource.init(downloadURL: url))
    
    self.kf.setImage(with: ImageResource.init(downloadURL: url), placeholder: nil, options: [KingfisherOptionsInfoItem.transition(ImageTransition.fade(5.5))], progressBlock: nil, completionHandler: nil)
  }
  
}
